/*
Naijanimi Free SMS Application for Nokia mobiles.

"Naijanimi Free SMS Application" is protected by the copyright law
(c) 2011 Enrico Miglino / Tech Consulting (enrico.miglino@ovi.com)
Distributed under the LGPL 3.0 license.

This file is part of "Naijanimi Free SMS Application".

    "Naijanimi Free SMS Application" is free software: you can redistribute it
    and/or modify it under the terms of the Lesser GNU General Public License
    as published by the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    "Naijanimi Free SMS Application" is distributed in the hope that it
    will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    Lesser GNU General Public License for more details.

    You should have received a copy of the Lesser GNU General Public License
    along with "Naijanimi Free SMS Application".
    If not, see <http://www.gnu.org/licenses/>.
*/

import QtQuick 1.0

// Logged functions manages all the program funcitons, accessible when
// the user complete a correct login.
Item {
    id: loggedFunctons

    // ---------------------------------------------------------- START DEBUG BLOCK
    // Debug info.
    // For debug console messages use debugMessage(msg) instead of console.log(msg)
    // in the source module set baseMsg property with the string that should appear
    // before any debug message on the console.
    // To disable debug, set debugStatus to false. This can be done also only in some
    // code blocks.
    property bool debugStatus: true
    property string baseMsg: "*** Debug LoggedFunctions.qml: "
    function debugMessage(msg) { if (debugStatus == true) console.log(baseMsg + msg); }
    // ---------------------------------------------------------- END DEBUG BLOCK

    // Set the standard working background
    WorkingBackground {
        id: tabBackground

        width: parent.width
        height: parent.height
    }

    // Tabbed object
    ProgramFeatures {
        id: tabbedFunctions

        width: parent.width * 0.96
        height: parent.height * 0.98
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.verticalCenter: parent.verticalCenter
        // Set tabbed interface parameters
        leftTabSize: 0.10
        leftTabWidth: 0.16
        verticalTabSize: 0.50
        rightAreaSize: 0.94

        TabbedArea {
            title: "SMS"
            TabWidgetTitle {
                text: "Send SMS"
            }
            // Shows the area content
            FunctionSendSMS {
                id: sendSMS
                width: parent.width; height: parent.height
            }
            // If clicked exit button, the form is hidden
            onForceExitClicked: { loggedFunctons.opacity = 0 }
        }

        TabbedArea {
            title: "SMS+"
            TabWidgetTitle {
                text: "Send SMS groups"
                font.pointSize: 12
            }
            // Shows the area content
            FunctionSendGroup {
                id: sendGroup
                width: parent.width; height: parent.height
            }
            // If clicked exit button, the form is hidden
            onForceExitClicked: { loggedFunctons.opacity = 0 }
        }

        TabbedArea {
            title: "Draft"
            TabWidgetTitle {
                text: "Manage SMS Draft"
                font.pointSize: 12
            }
            // If clicked exit button, the form is hidden
            onForceExitClicked: { loggedFunctons.opacity = 0 }
        }

        TabbedArea {
            title: "SMS?"
            TabWidgetTitle {
                text: "Manage SMS Archive"
                font.pointSize: 11
            }
            // If clicked exit button, the form is hidden
            onForceExitClicked: { loggedFunctons.opacity = 0 }
        }

        TabbedArea {
            title: "Group"
            TabWidgetTitle {
                text: "Manage Groups"
                font.pointSize: 14
            }
            // If clicked exit button, the form is hidden
            onForceExitClicked: { loggedFunctons.opacity = 0 }
        }

        TabbedArea {
            title: "Contact"
            TabWidgetTitle {
                text: "Add Contact"
            }
            // If clicked exit button, the form is hidden
            onForceExitClicked: { loggedFunctons.opacity = 0 }
        }

        TabbedArea {
            title: "PBook"
            TabWidgetTitle {
                text: "Manage Phone Book"
                font.pointSize: 10
            }
            // If clicked exit button, the form is hidden
            onForceExitClicked: { loggedFunctons.opacity = 0 }
        }

        TabbedArea {
            title: "User"
            TabWidgetTitle {
                text: "Show/Change User Info"
                font.pointSize: 9
            }
            // If clicked exit button, the form is hidden
            onForceExitClicked: { loggedFunctons.opacity = 0 }
        }
    }
}

